package com.longy.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.longy.common.utils.PageUtils;
import com.longy.gulimall.product.entity.AttrEntity;
import com.longy.gulimall.product.vo.AttrGroupRelationVo;
import com.longy.gulimall.product.vo.AttrRespVo;
import com.longy.gulimall.product.vo.AttrVo;


import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author longyang
 * @email longyang3240@163.com
 * @date 2020-09-28 20:47:20
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryBaseAttrList(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void saveAttr(AttrVo attr);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteAttrRelation(AttrGroupRelationVo[] vos);

    PageUtils attrNoRelation(Long attrgroupId, Map<String, Object> params);


}

